class House:
    area = 0;
    address = '';
    owener = ''
    def __init__(self,area,address,owener=''):
        self.area = area
        self.address = address
        self.owener = owener
house1 = House(80,'成都市青羊区顺城大街111号1-1-1','李四')
house2 = House(79,'成都市武侯区武侯祠大街20号1-1-2','王五')
house3 = House(72,'成都市高新区中河街道顺城大1号1-1-2','张三')
house4 = House(40,'成都市金牛区花牌坊大街11号2-1-14','赵柳')
highs = [172,173,174,175]
print(type(highs[0]))
houses = [house1,house2,house3,house4] #类的对象 其实就是自定义类型复杂变量
print(type(houses[0]))
for  house in houses:
    print(house.owener)
class Customer:
    name='';
    phone='';
    def __init__(self,name,phone):
        self.name = name
        self.phone = phone
customer1=Customer('张三','180')
customer2=Customer('刘五','135')
customer3=Customer('王明','133')
customers = [customer1,customer2,customer3]
for  customer in customers:
    print(customer.name,customer.phone)
class ClothFactory:
    masterName=''
    address=''
    price=0
    def __init__(self,masterName,address,price):
        self.masterName = masterName
        self.address = address
        self.price = price
clothFactory1=ClothFactory('张三','武侯区',80)
clothFactory2=ClothFactory('刘五','成华区',70)
clothFactory3=ClothFactory('王明','双流区',55)
clothFactorys = [clothFactory1,clothFactory2,clothFactory3]
for  clothFactory in clothFactorys:
    print(clothFactory.masterName,clothFactory.address,clothFactory.price)
